#include<stdio.h>

int main()
{
    int n;
    while(scanf("%d", &n) != EOF)//一定要写EOF
    {
        int sum = 1, m;
        for(int i = 1; i <= n; i ++)
        {
            
            scanf("%d ", &m);
            if(m % 2 != 0)
            {
                sum *= m;
            }
        }
        printf("%d\n", sum);
    }

    return 0;
}